/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package kr.or.eclipse.cedt.model.chromeExtension.impl;

import kr.or.eclipse.cedt.model.chromeExtension.*;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class ChromeExtensionFactoryImpl extends EFactoryImpl implements ChromeExtensionFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ChromeExtensionFactory init() {
		try {
			ChromeExtensionFactory theChromeExtensionFactory = (ChromeExtensionFactory)EPackage.Registry.INSTANCE.getEFactory("http://eclipse.or.kr/chromeExtension"); 
			if (theChromeExtensionFactory != null) {
				return theChromeExtensionFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new ChromeExtensionFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ChromeExtensionFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case ChromeExtensionPackage.CHROM_EXTENSION: return createChromExtension();
			case ChromeExtensionPackage.ICONS: return createIcons();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ChromExtension createChromExtension() {
		ChromExtensionImpl chromExtension = new ChromExtensionImpl();
		return chromExtension;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Icons createIcons() {
		IconsImpl icons = new IconsImpl();
		return icons;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ChromeExtensionPackage getChromeExtensionPackage() {
		return (ChromeExtensionPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static ChromeExtensionPackage getPackage() {
		return ChromeExtensionPackage.eINSTANCE;
	}

} //ChromeExtensionFactoryImpl
